<?php
$str=curl('https://www.readnovel.com/free/all?pageNum=1&pageSize=10&gender=1&catId=20001&isFinish=-1&isVip=1&size=-1&updT=-1&orderBy=0');
echo $str;
//$preg='#right-book-list.*page-box.*cf#isU';
//preg_match($preg,$str,$arr);
//print_r($arr);die;
function curl($url)
{
    $ch=curl_init();
    curl_setopt($ch,CURLOPT_URL,$url);
    curl_setopt($ch,CURLOPT_HEADER,0);
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
    curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
    $str=curl_exec($ch);
    return $str;
}